package org.cloud.im.server.util;

import org.cloud.im.core.http.HttpConfig;
import org.cloud.im.core.http.HttpRequest;
import org.cloud.im.server.config.ImServerConfig;

/**
 * @Author: w.weidong.lin@abite.com
 * @Description:
 * @Date: create in 2021/10/19 14:39
 */
public class HttpServerUtils {
	/**
	 *
	 * @param request
	 * @return
	 * @author WChao
	 */
	public static HttpConfig getHttpConfig(HttpRequest request) {
		ImServerConfig imServerConfig = (ImServerConfig)request.getImChannelContext().getImConfig();
		return imServerConfig.getHttpConfig();
	}

	/**
	 * @param args
	 * @author WChao
	 */
	public static void main(String[] args) {

	}

	/**
	 *
	 * @author WChao
	 */
	public HttpServerUtils() {
	}
}
